// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";

// 全局引入 css
import "./assets/css/reset.css";

// 引入仓库
import store from "./store";

// 引入element ui
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

// 封装全局组件 并用循环的方法导出所有的全局组件
import gCom from "./common";
for (let i in gCom) {
  Vue.component(i, gCom[i]);
}

// 创建一个图片地址
Vue.prototype.$imgUrl = "http://localhost:3000";

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
